<?php

namespace App;

use DateTimeInterface;
use Illuminate\Database\Eloquent\Model;

class City extends Model
{
    //
    public $timestamps = false;
    protected $primaryKey="value";
    public function city()
    {
        return $this->hasMany(City::class,"pid",'value');
    }
    public function area()
    {
        return $this->hasMany(City::class,"pid",'value');
    }
    protected function serializeDate(DateTimeInterface $date)
    {
        return $date->format('Y-m-d H:i:s');
    }
}
